const OrderObj = require('../modules/Order');

let OrderController = {
    get_orderInfo: async function(req, res){
        let resultDate = await OrderObj.getOrderInfo();
        res.send(resultDate);
    },
    get_orderFood: async function(req, res){
        let selectId = req.query.select_id;
        let resultDate = await OrderObj.getOrderSelect(selectId);
        res.send(resultDate);
    },
    post_orderDel: async function(req, res){
        let data = req.body;
        let resultDate = await OrderObj.delOrder(data);
        res.send(resultDate);
    }
}
module.exports = OrderController;